package com.wl.entity;

import java.util.Date;

public class Emp {
	// 属性
	private Integer empid;
	//账号
	private String empno;

	private String empname;
	//密码
	private String emppwd;
	//员工职位(1.员工，2.主管，3.采购 ，4.质检，5.仓管，6.经理）
	private Integer emppos;

	private String empdate;

	private String empphone;

	private String empemail;

	private String empaddress;

	private Integer empstatus;

	private Integer deptid;
	// 增加这个属性用作和部门的关联查询
	private Dept deptids;

	public Dept getDeptids() {
		return deptids;
	}

	public void setDeptids(Dept deptids) {
		this.deptids = deptids;
	}

	/**
	 * 无参构造
	 */
	public Emp() {
		super();
	}

	/**
	 * 有参构造
	 * 
	 * @param empid
	 * @param empno
	 * @param empname
	 * @param emppwd
	 * @param emppos
	 * @param empdate
	 * @param empphone
	 * @param empemail
	 * @param empaddress
	 * @param empstatus
	 * @param deptid
	 */
	public Emp(Integer empid, String empno, String empname, String emppwd, Integer emppos, String empdate,
			String empphone, String empemail, String empaddress, Integer empstatus, Integer deptid) {
		super();
		this.empid = empid;
		this.empno = empno;
		this.empname = empname;
		this.emppwd = emppwd;
		this.emppos = emppos;
		this.empdate = empdate;
		this.empphone = empphone;
		this.empemail = empemail;
		this.empaddress = empaddress;
		this.empstatus = empstatus;
		this.deptid = deptid;
	}

	@Override
	public String toString() {
		return "Emp [empid=" + empid + ", empno=" + empno + ", empname=" + empname + ", emppwd=" + emppwd + ", emppos="
				+ emppos + ", empdate=" + empdate + ", empphone=" + empphone + ", empemail=" + empemail
				+ ", empaddress=" + empaddress + ", empstatus=" + empstatus + ", deptid=" + deptid + "]";
	}

	public Integer getEmpid() {
		return empid;
	}

	public void setEmpid(Integer empid) {
		this.empid = empid;
	}

	public String getEmpno() {
		return empno;
	}

	public void setEmpno(String empno) {
		this.empno = empno == null ? null : empno.trim();
	}

	public String getEmpname() {
		return empname;
	}

	public void setEmpname(String empname) {
		this.empname = empname == null ? null : empname.trim();
	}

	public String getEmppwd() {
		return emppwd;
	}

	public void setEmppwd(String emppwd) {
		this.emppwd = emppwd == null ? null : emppwd.trim();
	}

	public Integer getEmppos() {
		return emppos;
	}

	public void setEmppos(Integer emppos) {
		this.emppos = emppos;
	}

	public String getEmpdate() {
		return empdate;
	}

	public void setEmpdate(String empdate) {
		this.empdate = empdate;
	}

	public String getEmpphone() {
		return empphone;
	}

	public void setEmpphone(String empphone) {
		this.empphone = empphone;
	}

	public String getEmpemail() {
		return empemail;
	}

	public void setEmpemail(String empemail) {
		this.empemail = empemail == null ? null : empemail.trim();
	}

	public String getEmpaddress() {
		return empaddress;
	}

	public void setEmpaddress(String empaddress) {
		this.empaddress = empaddress == null ? null : empaddress.trim();
	}

	public Integer getEmpstatus() {
		return empstatus;
	}

	public void setEmpstatus(Integer empstatus) {
		this.empstatus = empstatus;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}
}